package com.permissions.dispatcher.processor;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * 请求代码提供
 */
public class RequestCodeProvider {
    private final AtomicInteger currentCode = new AtomicInteger(0);

    /**
     * nextRequestCode
     * @return int
     */
    public int nextRequestCode() {
        return currentCode.getAndIncrement();
    }
}
